package welllog

import (
	"context"

	"github.com/wailsapp/wails/v2/pkg/runtime"
)

type weLog struct {
	ctx context.Context
}

var nowLog *weLog

func InitLog(ctx context.Context) {
	nowLog = &weLog{ctx: ctx}
}

func Debug(debug string) {
	runtime.LogDebug(nowLog.ctx, debug)
}

func Debugf(format string, args ...interface{}) {
	runtime.LogDebugf(nowLog.ctx, format, args...)
}

func Info(info string) {
	runtime.LogInfo(nowLog.ctx, info)
}
